#if($request.getParameter('floor'))
	#set($param = $!request.getParameter('floor'))
#else
	#set($param = 1)
#end
#set($floor=$myweb.getObject("ES_FLOOR_INDEX","ES_FLOOR_INDEX.ID==$param"))
#set($floorcat=$myweb.getList("ES_FLOORCAT_INDEX","datalist","ES_FLOORCAT_INDEX.ES_FLOOR_INDEX_ID==$param"))
#set($floorbrd=$myweb.getList("ES_FLOORBRD_INDEX","datalist","ES_FLOORBRD_INDEX.ES_FLOOR_INDEX_ID==$param"))
#set($floorgs=$myweb.getList("ES_FLOORGS_INDEX","datalist","ES_FLOORGS_INDEX.ES_FLOOR_INDEX_ID==$param"))
#set($floorhot=$myweb.getList("ES_FLOORHOT_INDEX","datalist","ES_FLOORHOT_INDEX.ES_FLOOR_INDEX_ID==$param"))
<div class="bottom clearfix">
	<div class="left">
		<div class="bg">
			<img src="$!floor.floorphoto" onerror="this.src='/esvml/img/loading.gif'">
		</div>
		<div class="href">
			<div class="h1 clearfix">
				<i class="line"></i>
				#foreach($cat in $floorcat)
				<a href="$!cat.url" class="sm" style="background-color: $!floor.floorcolor;">$!cat.keywords</a>
				#end
			</div>
			<div class="h2 clearfix">
				<i class="line-x"></i>
				<i class="line-y"></i>
				#foreach($brd in $floorbrd)
				<a href="$!brd.url">
					<img src="$!brd.brandphoto" onerror="this.src='/esvml/img/loading.gif'">
				</a>
				#end
			</div>
		</div><!-- href -->
	</div><!-- left -->
	<div class="right">
		<div>
			<img src="$!floor.floorphoto2" class="bg" onerror="this.src='/esvml/img/loading.gif'">
			<ul class="list">
				<h2>最热HOT</h2>
				#foreach($hot in $floorhot)
				<li>
					<a href="/c/pub/s/index.html?keywords=$hot.keywords" onmouseover="this.style.color='$!floor.floorcolor'" onmouseleave="this.style.color='#555'">$hot.keywords</a>
				</li>
				#end
			</ul>
		</div>
		#set($count=$floorgs.size() - 1)
		#foreach($i in [0..$count])
		#if($i > $count)
			#break
		#end

		#set($ispdt=false)
		#set($purl="$!floorgs.get($i).goodsurl")
		#set($pname="$!floorgs.get($i).pname")

		#if($getutil.getInteger($floorgs.get($i).es_goods_id,-1)>0)
			#set($ispdt=true)
			#set($purl="/j/s/pdt/$!{floorgs.get($i).es_goods_id}.html")
		#end

		#if($i < 3)
			<a href="$purl">
		#else
			<a href="$purl" class="b-n">
		#end

		#if($ispdt)
			#set($goods=$goodscache.getESGoodsCache($getutil.getInteger($floorgs.get($i).es_goods_id)))
				<img src="$!goods.getTHUMB()" class="main" onerror="this.src='/esvml/img/loading.gif'">
				<p class="title">$!goods.getNAME()</p>
				<p class="bottom clearfix">
					<span class="left"></span>
					<span class="right">￥$!goods.getSHOP_PRICE()<i class="icon icon-dhj"></i></span>
				</p>
			#else
			<img src="$!floorgs.get($i).goodsphoto" class="main" onerror="this.src='/esvml/img/loading.gif'">
			<p class="title">$!pname</p>
		#end
		</a>
		#end
	</div><!-- right -->
</div><!-- bottom -->
